﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace MiniCrawler
{
    /// <summary>
    /// FileName:Constant.cs
    /// Author:Hoangvv
    /// Create Date:15/10/2012
    /// Copyright:BizNews.com.vn
    /// </summary>
    public class Constant
    {
        #region Common

        public const string PREFIX = "ows_";

        #region List Name

        public static class ListName
        {           
            public const string CMS_NEWS = "CMS_News";
            public const string CMS_DM_WEB = "DM_Web";
            public const string CMS_CONIG_GETWEB = "CMS_ConfigGetWeb";
            public const string CMS_FILE_ATTACH = "CMS_FileAttach";
        }

        #endregion

        /// <summary>
        /// List News
        /// </summary>
        public static class CMS_News
        {
            public const string TIN_BAI_ID = "TinBaiID";
            public const string NEWS_ID = "NewsID";
            public const string MA = "MaTin";
            public const string PHIEN_BAN = "PhienBan";
            public const string TRANG_THAI_SU_DUNG = "TrangThaiSuDung";
            public const string TRANG_THAI_TRUY_CAP = "TrangThaiTruyCap";
            public const string TRANG_THAI_DANH_GIA = "TrangThaiDanhGia";
            public const string TRANG_THAI_TIN_BAI = "TrangThaiTinBai";
            public const string TRANG_THAI_CHO_Y_KIEN = "TrangThaiChoYKien";
            public const string NGON_NGU = "NgonNgu";
            public const string TIEU_DE = "Title";
            public const string TIEU_DE_KHONG_DAU = "TieuDeKhongDau";
            public const string TOM_TAT = "TomTat";
            public const string TOM_TAT_KHONG_DAU = "TomTatKhongDau";
            public const string NOI_DUNG = "NoiDung";
            public const string NOI_DUNG_KHONG_DAU = "NoiDungKhongDau";
            public const string DUONG_DAN_ANH = "DuongDanAnh";
            public const string TIEU_DE_ANH = "TieuDeAnh";
            public const string TAC_GIA = "TacGia";
            public const string TAC_GIA_KHONG_DAU = "TacGiaKhongDau";
            public const string NGAY_PHE_DUYET = "NgayPheDuyet";
            public const string NGUOI_PHE_DUYET = "NguoiPheDuyet";
            public const string SO_LAN_DOC_TIN = "SoLanDocTin";
            public const string TONG_SO_DANH_GIA = "TongSoDanhGia";
            public const string TONG_DIEM_DANH_GIA = "TongDiemDanhGia";
            public const string DIEM_TRUNG_BINH_DANH_GIA = "DiemTrungBinhDanhGia";
            public const string SO_NGUOI_CHO_Y_KIEN = "SoNguoiChoYKien";
            public const string NGUON_TIN = "NguonTin";
            public const string META_DATA = "MetaData";
            public const string WEBSITE = "Website";
            public const string DUONG_DAN_TIN = "DuongDanTin";
            public const string THOI_GIAN = "ThoiGian";
            public const string TRANG_THAI_HIEN_THI = "TrangThaiHienThi";
            public const string TRANG_THAI = "TrangThai";
            public const string NHOM_XU_LY_TIEP = "NhomXuLyTiep";
            public const string NHOM_XEM = "NhomXem";
            public const string CHUC_NANG = "ChucNang";
            public const string NHOM_TRUOC = "NhomTruoc";
            public const string QUY_TRINH = "QuyTrinh";
            public const string NGUOI_CHU_TRI = "NguoiChuTri";
            public const string NGAY_CHUYEN = "NgayChuyen";
            public const string NGUOI_CHUYEN = "NguoiChuyen";
            public const string NGUOI_TAO = "NguoiTao";
            public const string LOG = "Log";
            public const string ATTS = "Atts";
            public const string ATTCOUNT = "AttCount";
            public const string Y_KIEN_XU_LY = "YKienXuLy";
            public const string Y_KIEN_NGUOI_GIAO = "YKienNguoiGiao";
            public const string DANHSACH_NGUOIXEM = "DanhSachNguoiXem";
            public const string DANHSACH_NGUOICHOYKIEN = "DanhSachNguoiChoYKien";
        }

        /// <summary>
        /// List dm_web
        /// </summary>
        public static class DM_Web
        {
            public const string TIEU_DE = "Title";
            public const string MA = "Ma";
            public const string TRANG_THAI = "TrangThai";
            public const string SO_THU_TU = "SoThuTu";
        }
        /// <summary>
        /// Cong viec - file dinh kem
        /// </summary>
        public static class CMS_FileAttach
        {
            public const string FILE_ID = "FileID";
            public const string TIEU_DE = "Title";
            public const string TIN_BAI = "TinBai";
            public const string LOAI_FILE_DINH_KEM = "LoaiFileDinhKem";
            public const string DUONG_DAN_FILE_DINH_KEM = "DuongDanFileDinhKem";
        }
        /// <summary>
        /// List configgetweb
        /// </summary>
        public static class CMS_Config_Get_Web
        {
            public const string SO_THU_TU = "SoThuTu";
            public const string SO_LUONG_TIN = "SoLuongTin";
            public const string DUONG_DAN_SITE = "Title";
            public const string WEBSITE = "Website";
            public const string THOI_GIAN = "ThoiGian";
        }

        /// <summary>
        /// Class luu Link lay tin
        /// </summary>
        public static class URL
        {
            public const string Chinhphu = "http://chinhphu.vn/portal/page/portal/chinhphu/chidaodieuhanh";
            public const string Mic = "http://mic.gov.vn/tintucsukien/Trang/default.aspx";
            public const string Danang = "http://www.danangcity.gov.vn/portal/page/portal/danang/trang_chinh";
            public const string HoChiMinh = "http://aspa2012.hcm.gov.vn/aspa/index.php/vi";
            public const string Hanoi = "http://www.hanoi.gov.vn/web/guest/ct_trangchu/-/vcmsviewcontent/GbkG/3";
            public const string Viettel = "http://viettel.com.vn/index.html";
            public const string Vnpt = "http://www.vnpt.com.vn/Default.aspx?tabid=83&catid=13&temidclicked=13";

            public static string NewsVCA
            {
                get { return ConfigurationManager.AppSettings["URL_NEWS_VCA"]; }
            }
        }

        /// <summary>
        /// Class luu Link trang chu cua trang lay tin
        /// </summary>
        public static class PrimaryUrl
        {
            public const string ChinhphuImage = "http://baodientu.chinhphu.vn";
            public const string Chinhphu = "http://chinhphu.vn";
            public const string Mic = "http://mic.gov.vn";
            public const string Danang = "http://www.danangcity.gov.vn";
            public const string HoChiMinh = "http://aspa2012.hcm.gov.vn";
            public const string Hanoi = "http://hanoi.gov.vn";
            public const string Viettel = "http://viettel.com.vn";
            public const string Vnpt = "http://www.vnpt.com.vn";
      
        }

        /// <summary>
        /// Webservice paramater
        /// </summary>
        public static class WebserviceParam
        {
            public const string AUTHENTICATION = "/_vti_bin/authentication.asmx";
            public const string LISTS = "/_vti_bin/lists.asmx";
        }

        /// <summary>
        /// Location 
        /// </summary>
        public static class Location
        {
            public const string LOCAL = "local";
            public const string INTERNET = "internet";
        }

        /// <summary>
        /// Appsetting keys
        /// </summary>
        public static class AppSettingKeys
        {            
            public const string TOASOAN_LOCATION = "TOASOAN_Location";           
            public const string URLTOASOAN = "URL_TOASOAN";
            public const string ACOUNTTOASOAN = "Acount_TOASOAN";
            public const string PASSTOASOAN = "Pass_TOASOAN";           
        }

        #endregion


        public class LinkTypes
        {
            public const string Category = "Category";
            public const string Data = "Data";
            public const string Download = "Download";
        }
       
    }
}
